<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>v-for遍历数组</title>
    <script src="js/vuejs-2.5.16.js"></script>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="(item,index) in arr ">{{item}}={{index}}</li>
    </ul>
</div>
</body>
<script>
    //view model
    new Vue({
        el: "#app",
        data: {
            arr: [1, 2, 3, 4, 5]
        }
    })
</script>
</html>
